package com.ljh.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ljh.pojo.Singer;
import com.ljh.vo.SexVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SingerService extends IService<Singer> {

    /**
     * 通过id来删除singer信息
     * @param singerId
     */
    public void deleteSingerById(Integer singerId);

    /**
     * 通过id来查找歌手的信息
     * @param singerId
     * @return
     */
    public Singer findSingerById(Integer singerId);

    /**
     * 更新歌手信息
     * @param singer
     * @return
     */
    public Integer updateSingerById(@Param("singer") Singer singer);

    /**
     * 更新歌手的照片
     * @param singerPhoto
     * @param singerId
     */
    public void UpdatePersonPhoto(String singerPhoto,Integer singerId);

    /**
     * 添加歌手
     * @param singer
     */
    public void insertSinger(@Param("singer") Singer singer);

    /**
     *
     * @param singerName
     * @return
     */
    public List<Singer> findSingerByName(String singerName);

    /**
     * 获取性别
     * @return
     */
    public List<SexVo> findSingerSex();
}
